package com.jiuli.liping;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.MultipartConfigFactory;

import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@Configuration
@EnableTransactionManagement
@SpringBootApplication
@EnableScheduling
@MapperScan("com.jiuli.liping.dao")
@EnableAsync
@ServletComponentScan(basePackages = {"com.util.CrosFilter"}) //这一句完成了配置，Springboot的”懒理念“真的厉害。
public class LipingApplication {

    public static void main(String[] args) {

        System.out.println("1111");
        SpringApplication.run(LipingApplication.class, args);
    }

}